package com.fpd.enums;

/**
 * 跟进结果枚举
 *
 * @author Monster
 */
public enum FollowResultEnum {
	RESULT1("1", "待观察"),
	RESULT2("2", "协商跟进"),
	RESULT3("3", "表示已还款"),
	RESULT4("4", "承诺还款");

    private String value;
    private String name;

    FollowResultEnum(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getNameByValue(String value) {
        for (FollowResultEnum ate : FollowResultEnum.values()) {
            if (ate.getValue().equals(value)) {
                return ate.getName();
            }
        }
        return "";
    }
}
